Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pixi/settings

Package Overview
Dependencies
Maintainers
2
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/settings

Collecting of user configurable settings used throughout PixiJS

  • 5.3.12
  • latest-5.3.x
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
404K
increased by135.12%
Maintainers
2
Weekly downloads
 
Created

What is @pixi/settings?

@pixi/settings is a configuration utility for the PixiJS library, which is a popular 2D rendering engine for creating interactive graphics and animations in web applications. This package allows developers to customize and manage various settings related to rendering, performance, and other aspects of the PixiJS engine.

What are @pixi/settings's main functionalities?

Setting Resolution

This feature allows you to set the resolution of the renderer. Higher resolutions can provide better visual quality but may impact performance.

const { settings } = require('@pixi/settings');
settings.RESOLUTION = 2;

Setting Background Color

This feature allows you to set the background color of the renderer. The color is specified in hexadecimal format.

const { settings } = require('@pixi/settings');
settings.BACKGROUND_COLOR = 0x1099bb;

Setting Max Texture Size

This feature allows you to set the maximum texture size that the renderer can handle. This is useful for optimizing performance and ensuring compatibility with different devices.

const { settings } = require('@pixi/settings');
settings.MAX_TEXTURE_SIZE = 4096;

Other packages similar to @pixi/settings

FAQs

Package last updated on 23 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc